{{ define "main" }}

<section class="section speakers white">
	<div class="container">
		<div class="row">
			<div class="col-12 section-title">
        {{.Content}}
			</div>
		</div>
		{{ range $lvl := slice "" "Gold" "Silver" "Bronze" "Supporter" }}
		  {{ if ne $lvl "" }}
			<div class="row">
				<div class="col-12 section-title">
					<h3>{{ $lvl }}</h3>
				</div>
			</div>
			{{ end }}
			<div class="row">
		  {{ range $page := sort (where (where site.RegularPages "Type" "sponsor") "Params.designation" $lvl) "Params.date" }}
	  		<div class="col-lg-3 col-md-4 col-sm-6">
		  		<div class="speaker-item">
			  		<div class="image">
				  		<img src="{{ .Params.image | absURL }}" alt="{{ .Title }}" class="img-fluid">
					  	<div class="primary-overlay"></div>
						  <div class="socials">
							  <ul class="list-inline">
                  {{ range first 4 .Params.social }}
                  <li class="list-inline-item"><a href="{{.link | safeURL }}"><i class="fa {{.icon}}"></i></a></li>
                  {{ end }}
							  </ul>
						  </div>
					  </div>
					  <div class="content text-center">
						  <h5><a href="{{ .Permalink }}"><b>{{.Title }}</b></a></h5>
					  </div>
				  </div>
        </div>


			{{ end }}
		  </div>
    {{ end }}
  </div>
</section>

{{ end }}
